import 'package:intl/intl.dart';

class DateUtil {

  static String yearMonthDayDateFormat(int timeStamp) {
    return DateFormat("yyyy-MM-dd").format(DateTime.fromMillisecondsSinceEpoch(timeStamp * 1000));
  }

  static String yearMonthDayHourMinuteDateFormat(int timeStamp) {
    return DateFormat("yyyy-MM-dd HH:mm").format(DateTime.fromMillisecondsSinceEpoch(timeStamp * 1000));
  }
}